package com.cqsd.bean.beantest;

import com.cqsd.ShopService;
import com.cqsd.UserService;
import com.cqsd.entry.a.b.c.EmpService;
import com.cqsd.ioc.annotation.Bean;
import com.cqsd.ioc.annotation.Component;

/**
 * @author caseycheng
 * @date 2023/3/27-17:37
 **/
@Component
public class PersonConfig {
    @Bean
    public Person person() {
        return new Person("啊");
    }

    @Bean
    public ShopService shopService(EmpService empService, UserService userService) {
        return new ShopService(empService,userService);
    }
}
